﻿<UserControl x:Class="NthDownload.DownloadPlugins.Http.Views.HttpSettingsView"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             HorizontalAlignment="Center" MinWidth="500" MinHeight="300">
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="*"/>
            <RowDefinition Height="Auto"/>
        </Grid.RowDefinitions>

        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="Auto" />
            <ColumnDefinition Width="*" />
        </Grid.ColumnDefinitions>

        <StackPanel Grid.RowSpan="2" Grid.Column="0" Margin="0,0,5,0">
            <Button x:Name="ShowGeneralSettings" Content="General" Margin="0,0,0,5"/>
            <Button x:Name="ShowCredentialSettings" Content="Credentials" Margin="0,0,0,5"/>
        </StackPanel>

        <ScrollViewer Grid.Row="0" Grid.Column="1" HorizontalScrollBarVisibility="Disabled" VerticalScrollBarVisibility="Auto">
            <ContentControl x:Name="ActiveItem" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" />
        </ScrollViewer>

        <StackPanel Grid.Row="2" Grid.Column="1"  Orientation="Horizontal" HorizontalAlignment="Right" VerticalAlignment="Bottom">
            <Button x:Name="Save" Content="Save" Margin="5,5,0,0"/>
            <Button x:Name="Cancel" Content="Cancel" Margin="5,5,0,0"/>
        </StackPanel>
    </Grid>
</UserControl>
